<html>
<head>
<meta http-equiv="content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="<?php echo $this->_webroot('css/all.css'); ?>" type="text/css"  rel="stylesheet">
<script language="javascript" type="text/javascript">

function to_url(url){
	document.location.href = url;
}

function ato_url(url,obj){
	document.location.href = url+"&v="+obj.value;
}


var menuTimer = null;

function show_menu(obj1,obj2,state,location){ 
    var btn=document.getElementById(obj1);
    var obj=document.getElementById(obj2);
    var h=btn.offsetHeight;
    var w=btn.offsetWidth;
    var x=btn.offsetLeft;
    var y=btn.offsetTop;
    
    obj.onmouseover =function(){
        show_menu(obj1,obj2,'show',location);
    }
    obj.onmouseout =function(){
        show_menu(obj1,obj2,'hide',location);
    }
    
    while(btn=btn.offsetParent){y+=btn.offsetTop;x+=btn.offsetLeft;}
    
    var hh=obj.offsetHeight;
    var ww=obj.offsetWidth;
    var xx=obj.offsetLeft;
    var yy=obj.offsetTop;
    var obj2state=state.toLowerCase();
    var obj2location=location.toLowerCase();
    
    var showx,showy;

    if(obj2location=="left" || obj2location=="top" || obj2location=="right" || obj2location=="bottom"){
        if(obj2location=="left"){showx=x-ww;showy=y;}
        if(obj2location=="top"){showx=x;showy=y-hh;}
        if(obj2location=="right"){showx=x+w;showy=y;}
        if(obj2location=="bottom"){showx=x;showy=y+h;}
    }else{ 
        showx=xx;showy=yy;
    }
    obj.style.left=showx+"px";
    obj.style.top=showy+"px";
    if(state =="hide"){
        menuTimer =setTimeout("_hide_menu('"+ obj2 +"')", 1);
    }else{
        clearTimeout(menuTimer);
        obj.style.visibility ="visible";
    }
}
function _hide_menu(id){
    document.getElementById(id).style.visibility ="hidden";
}

</script>
</head>
<body>

<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                     
                                                 <li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanageedit/?<?php echo $urlstr ; ?>"   target="_self">Icon标签修改</a></li>

                                                 <li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanageactiveedit/?<?php echo $urlstr ; ?>"   target="_self">Icondata时间控制修改</a></li>	
												  <li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagetableedit/?<?php echo $urlstr ; ?>"   target="_self">Icon表单数据调用</a></li>
<li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagetableuseredit/?<?php echo $urlstr ; ?>"   target="_self">用户数据修改</a></li>												  
												 <li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagecacheedit/?<?php echo $urlstr ; ?>"   target="_self">Icon缓存数据调用</a></li>											 
												 <li><a href="#" class="nav_icon"  target="_self">HTML修改</a></li>
												 <li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagelabeledit/?<?php echo $urlstr ; ?>"   target="_self">Labels修改</a></li>
                                                 <!-- <li><a href="<?php echo $fromurl ; ?>"   target="_self">返回主站</a></li>-->
	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>HTML修改</h1>

                  <div>
                                    <div class="tips_show"> <b>提示: </b>
                                                                  <span >
                                                                  
                                                                                               
                                                                  
                                                                  </span>
                                    </div>
                              
 
<?php 

if(!isset($data['iconname'])) { $data['iconname'] ='';} 
if(!isset($data['description'])) { $data['description'] ='';} 
if(!isset($data['iconcontent'])) { $data['iconcontent'] ='';} 
if(!isset($data['config']['tablename'])) { $data['config']['tablename'] ='';} 
if(!isset($data['config']['fields'])) { $data['config']['fields'] ='';} 
if(!isset($data['config']['order'])) { $data['config']['order'] ='';} 
if(!isset($data['config']['limit'])) { $data['config']['limit']='';} 
if(!isset($data['config']['conditions'])) { $data['config']['conditions']='';} 
if(!isset($data['config']['pageurl'])) { $data['config']['pageurl']='';} 
if(!isset($data['config']['cachedatadir'])) { $data['config']['cachedatadir']='';} 
if(!isset($data['config']['cachefields'])) { $data['config']['cachefields']='';} 
if(!isset($data['config']['icondata'])) { $data['config']['icondata']='';} 
if(!isset($data['config']['iconfields'])) { $data['config']['iconfields']='';} 
if(!isset($data['config']['labels'])) { $data['config']['labels']='';} 
if(!isset($data['config']['htmlname'])) { $data['config']['htmlname']='';} 
if(!isset($data['config']['htmlconfig'])) { $data['config']['htmlconfig']='';} 

?>  


<form action="<?php echo $this->base; ?>/index.php/tagsedit/viewmanagehtmledit" method="post" enctype="multipart/form-data" name="form1"  onSubmit="return post(this);">

<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody>


<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td align='right'><strong>HTML代码</strong>:</td>
	<td>


<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth">



    <tr  align="center"> 

      <td colspan="2"> &nbsp; 





            </td>

          </tr>

          <tr  id="TRtpl_1">
            <td > 



                    <textarea name="data[tplpart_1]" id="tplpart_1" cols="90" rows="8" style="height:250px;"><?php echo $code ; ?></textarea>


            </td>

          </tr>

          <tr >
            <td > 
<input type="radio" name="data[mokuai]" value="1"  onclick="form_choose('1')"  >创建&nbsp;&nbsp;&nbsp;<input type="radio" name="data[mokuai]" value="0"  checked   onclick="form_choose('0')" >修改
            </td>
          </tr>

          <tr  id="field_form_1"  style="display:none;">
            <td > 

文件名：<input type="text" name="data[filename]" size="60" value="<?php echo $htmlname ; ?>" >

            </td>
          </tr>

        </table>


      </td>

    </tr>

</table>


    
    </td>
</tr>

									 
<tr>
	<td>&nbsp;</td>
	<td>
	<input type="hidden" name="data[pagename]" value="<?php echo $pagename ; ?>" />
	<input type="hidden" name="data[strtempdata]" value="<?php echo $strtempdata; ?>" />
	<input type="hidden" name="data[fromurl]" value="<?php echo $weburl; ?>" />
	
	<input type="hidden" name="data[compeld]" value="<?php echo $compeld; ?>" />	
	<input type="hidden" name="data[webroot]" value="<?php echo $webroot; ?>" />
	<input type="hidden" name="data[app]" value="<?php echo $app; ?>" />
	<input type="hidden" name="data[act]" value="<?php echo $act; ?>" />
	
	<input type="hidden" name="data[dopost]" value="post" />	
	
	<input type="submit" value="提交" class="buton"></td>
</tr>
</tbody></table>
</form>                                 
 
   <SCRIPT LANGUAGE="JavaScript"> 

<!--
function get_obj(obj){
   return document.getElementById(obj);
}
 
function form_choose(t)
{

	if(t=='1')
	{
		get_obj('field_form_1').style.display='';		    
	}else
	{
		get_obj('field_form_1').style.display='none';		    
	}	

}
form_choose('0');
//-->
</SCRIPT>                                   
                        

                 </div>

</div>



           <div style="clear:both;"><br/><br/></div>
           <div style="clear:both;"><br/><br/></div>
</body>
</html>